package com.juku2024.juku.db.dao

import androidx.room.*
import com.juku2024.juku.db.entity.NoteExportEntity

@Dao
interface NoteExportDao {

    @Query("SELECT * FROM `note_export` ")
    fun queryAll(): List<NoteExportEntity>?

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(adEntity: NoteExportEntity)

    @Update
    fun update(adEntity: NoteExportEntity)

    @Query("DELETE FROM `note_export` WHERE _id=:id")
    fun delete(id: Long)

    @Query("DELETE FROM `note_export`")
    fun deleteAll()
}